package com.logistics.compont;

import java.util.HashMap;

public class QueryPageParam {

    private Integer pageSize = 10;  //每页多少条
    private Integer currentNum = 1; //当前第几页
    private Integer totalPage;      //总页数
    private Integer totalNum;       //总条数
    private HashMap hashMap;        //条件

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(Integer currentNum) {
        this.currentNum = currentNum;
    }

    public Integer getTotalPage() {
        return totalNum%pageSize==0 ? totalNum/pageSize : totalNum/pageSize + 1;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public HashMap getHashMap() {
        return hashMap;
    }

    public void setHashMap(HashMap hashMap) {
        this.hashMap = hashMap;
    }
}
